/*
 *  $Id: CreatureAction.cs 1217 2010-11-27 10:48:54Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008-2010 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

using Nereal.Serialization;

namespace Ragima.Events {
    /// <summary>
    /// Событие какого-либо действия существа.
    /// </summary>
    [TypeId("cr_action"), ConstructorParameters("Args")]
    public class CreatureAction : TargetEvent {
        public CreatureAction(TargetArgs args): base(args) {}

        protected override void ExecuteInner(Game scene) {
            var ca = Args as CreatureActionTargetArgs;
            if (ca != null)
                ca.DoAction();
        }
    }
}
